import pymysql
import sqlite3

class DB():

    def __init__(self):
        # locdb = sqlite3.connect('cov19.db')
        # loccursor = locdb.cursor()
        # loccursor.execute('select * from ip')
        # ip = loccursor.fetchone()
        # ip_add = ip[0].split(':')
        # locdb.close()
        # self.con = pymysql.connect(
        #     host = ip_add[0],
        #     port = int(ip_add[1]),
        #     user= ip[1],
        #     passwd= ip[2],
        #     db= ip[3],
        #     charset='utf8')
        self.con = sqlite3.connect('cov19.db')

        self.cur = self.con.cursor()
